import {GlobalConfigsLoader} from "db://assets/script/global-configs-loader";
import Long from "long";
import {ZoneConfigs} from "db://assets/proto/shared/v1/configs";

export class ZoneConfigsLoader {

    findZoneConfigs(zoneId: Long): ZoneConfigs | undefined {
        const zc = GlobalConfigsLoader.instance.getZoneConfigs()
        return zc.get(zoneId.toString())
    }

}

export const zoneConfigsLoader = new ZoneConfigsLoader();